a = [1, 2, 5, 10, 20, 50, 100, 200]
N = 201
f = [0 for i in xrange(N)]

f[0] = 1
for n in a:
    for i in xrange(n, N):
        f[i] += f[i-n]

print f
print f[200]

